package com.woniuxy.commons.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
@author zouyang
@date 2020/7/27 - 14:45
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class QuestionBank implements Serializable {


    /**
    * 题库id
    */
    private Integer id;

    /**
    * 题库名
    */
    private String label;

    /**
    * 如果是子题库，这就是他的父题库id
    */
    private Integer pid;


    private transient String pname;

    private transient Integer scNum;

    private transient Integer mcNum;

    private transient Integer tofNum;

    private transient Integer bfNum;

    private transient Integer saNum;

    private static final long serialVersionUID = 1L;

    private transient List<QuestionBank> children = new ArrayList<>();

    public void add(QuestionBank questionBank){
        children.add(questionBank);
    }

}